﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DBbackup.aspx.cs" Inherits="UI_DBbackup" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>来话宝
        <%=FTchina.Library.MasterHelper.ClientTitle %>-数据库备份 </title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <link href="/images/style.css" rel="Stylesheet" />
    <script language="javascript" type="text/javascript" src="/js/jiazai.js"></script>
    <script src="/js/introbox.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript" src="/js/jquery-1.3.2.min.js"></script>
    <script language="javascript" type="text/javascript" src="/js/pagefunction.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table width="100%" class="tableBorder" border='1' cellspacing="0" style="border-collapse: collapse;"
            bgcolor="#ffffff" bordercolor="#cccccc">
            <tr align="center" valign="middle">
                <th height="22" colspan="88">
                    来 电 历 史 记 录
                </th>
            </tr>
            <tr>
                <td>
                    操作
                </td>
                <td>
                    <input type="button" class="btn" value="刷新" onclick="Refresh()" />
                    &nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;
                    <asp:Button runat="server" ID="Button1" Text="创建备份" OnClick="btnbackup_Click"
                        CssClass="btn" />
                </td>
            </tr>
        </table>
        <table align="center" width="100%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td>
                    <asp:GridView ID="gvList" runat="server" AutoGenerateColumns="false" PageSize="20"
                        AllowPaging="true" Width="100%">
                        <Columns>
                            <asp:BoundField DataField="Name" HeaderText="名称" />
                            <asp:BoundField DataField="Cdate" HeaderText="创建时间" />
                            <asp:BoundField DataField="Csize" HeaderText="文件大小" />
                            
                            <asp:TemplateField HeaderText="操作">
                                <ItemTemplate>
                                    <a href="?act=back&path=<%#Eval("name")%>" onclick="{if(confirm('此操作不可逆请确认操作?')){return true;}return false;}">还原</a> 
                                    <a href="?act=del&path=<%#Eval("name")%>"  onclick="{if(confirm('此操作不可逆请确认操作?')){return true;}return false;}">删除</a>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <PagerSettings Visible="false" />
                    </asp:GridView>
                </td>
            </tr>
        </table>
        <table border="0" cellpadding="0" cellspacing="0" class="PageTableCss" width="100%">
            <tr>
                <td class="PageLableCss" style="height: 41px">
                    <asp:Label ID="Label5" runat="server" Text="总共【"></asp:Label>
                    <asp:Label ID="LblRecordCount" runat="server" ForeColor="blue"></asp:Label>
                    <asp:Label ID="Label6" runat="server" Text="】条"></asp:Label>
                    <asp:Label ID="Label3" runat="server" Text="共【"></asp:Label>
                    <asp:Label ID="LblPageCount" runat="server"></asp:Label>
                    <asp:Label ID="Label4" runat="server" Text="】页"></asp:Label>
                    <asp:Label ID="Label1" runat="server" Text="第【"></asp:Label>
                    <asp:Label ID="LblCurrentIndex" runat="server" ForeColor="red"></asp:Label>
                    <asp:Label ID="Label2" runat="server" Text="】页"></asp:Label>
                </td>
                <td class="PageLinkButtonCss" style="height: 41px">
                    <asp:LinkButton CssClass="btn" ID="btnFirst" runat="server" CommandArgument="first"
                        OnClick="PagerButtonClick">首 页</asp:LinkButton>
                    <asp:LinkButton CssClass="btn" ID="btnPrev" runat="server" CommandArgument="prev"
                        OnClick="PagerButtonClick">上一页</asp:LinkButton>
                    <asp:LinkButton CssClass="btn" ID="btnNext" runat="server" CommandArgument="next"
                        OnClick="PagerButtonClick">下一页</asp:LinkButton>
                    <asp:LinkButton CssClass="btn" ID="btnLast" runat="server" CommandArgument="last"
                        OnClick="PagerButtonClick">尾 页</asp:LinkButton>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
<script language='javascript' type='text/javascript' src='/JS/tablecolor.js'></script>
<script type='text/javascript' language='javascript'><!--
    TableColor('gvList', '#F1F8FE', '#FFFFFF', '#F8DC87', '#BCE774');
    --></script>
